package com.brush.brushcommon.vo.basic;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CategoryVo {

    @Schema(description = "外键关联id")
    private String parentId;

    @Schema(description = "分类名称")
    private String categoryName;

    @Schema(description = "创建人")
    private String gmtFounder;

    @Schema(description = "子分类")
    private List<CategoryVo> children;

    @Schema(description = "分类id")
    private String id;

    /**
     * 创建时间
     * 自动填充
     */
    @Schema(description = "创建时间")
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     * 自动填充
     */
    @Schema(description = "修改时间")
    private LocalDateTime gmtModified;
}
